package com.jd.sys.mapper;

import com.jd.sys.domain.Menu;
import com.jd.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author É°Ç³
 * @since 2023-03-09
 */
public interface MenuMapper extends BaseMapper<Menu> {
    void deleteByRoleId(Long id);

    void addMid(@Param("roleId") Long id, @Param("menus") List<Long> menus);

    List<Menu> findByLogininfoId(Long logininfoId);
}
